﻿<?xml version="1.0" encoding="utf-8"?>
<WITD application="Work item type editor" version="1.0" xmlns="http://schemas.microsoft.com/VisualStudio/2008/workitemtracking/typedef">
  <WORKITEMTYPE xmlns="" name="Sprint">
    <DESCRIPTION>Includes information about a particular Sprint</DESCRIPTION>
    <FIELDS>
      <FIELD type="String" name="Title" refname="System.Title">
        <HELPTEXT>The scheduling path</HELPTEXT>
      </FIELD>
      <FIELD type="Integer" name="Id" refname="System.Id">
        <HELPTEXT>Human readable, auto-populated numeric Id</HELPTEXT>
      </FIELD>
      <FIELD type="PlainText" name="Description" refname="System.Description">
        <HELPTEXT>Enter the goal of the Sprint</HELPTEXT>
      </FIELD>
      <FIELD type="History" name="History" refname="System.History">
        <HELPTEXT>Discussion thread and other historical information including fields that have changed, by whom and when.</HELPTEXT>
      </FIELD>
      <FIELD type="String" name="State" refname="System.State">
        <HELPTEXT>This is the status of the Sprint as selected by a team member</HELPTEXT>
      </FIELD>
      <FIELD reportable="dimension" type="DateTime" name="Sprint Start (Scrum v3)" refname="Scrum.v3.SprintStart">
        <HELPTEXT>(Calculated) The date on which the Sprint is due to start, calculated by the system from the linked Team Sprints included in this Sprint</HELPTEXT>
      </FIELD>
      <FIELD reportable="dimension" type="DateTime" name="Sprint End (Scrum v3)" refname="Scrum.v3.SprintEnd">
        <HELPTEXT>(Calculated) The date on which the Sprint is due to end, calculated by the system from the linked Team Sprints included in this Sprint</HELPTEXT>
      </FIELD>
      <FIELD reportable="measure" type="Integer" name="Capacity (Scrum v3)" refname="Scrum.v3.Capacity">
        <HELPTEXT>(Calculated) Number of capacity work hours available for this Sprint</HELPTEXT>
      </FIELD>
      <FIELD type="TreePath" name="Iteration Path" refname="System.IterationPath">
        <HELPTEXT>Match the Sprint to the appropriate Sprint Name in the IterationPath</HELPTEXT>
      </FIELD>
      <FIELD reportable="dimension" type="DateTime" name="History Date (Scrum v3)" refname="Scrum.v3.HistoryDate">
        <COPY from="clock" />
        <DEFAULT from="clock" />
      </FIELD>
      <FIELD reportable="dimension" type="DateTime" name="Actual Work Starts (Scrum v3)" refname="Scrum.v3.ActualWorkStarts">
        <HELPTEXT>(Calculated) The actual date on which the Release work starts</HELPTEXT>
      </FIELD>
      <FIELD reportable="dimension" type="DateTime" name="Actual Work Ends (Scrum v3)" refname="Scrum.v3.ActualWorkEnds">
        <HELPTEXT>(Calculated) The actual date on which the Release work ends</HELPTEXT>
      </FIELD>
      <FIELD reportable="measure" type="Double" name="Planned Work (Scrum v3)" refname="Scrum.v3.PlannedWork">
        <HELPTEXT>(Calculated) Number of hours of planned work in this Sprint</HELPTEXT>
      </FIELD>
    </FIELDS>
    <WORKFLOW>
      <STATES>
        <STATE value="Not Started" />
        <STATE value="In Progress" />
        <STATE value="Done" />
        <STATE value="Aborted" />
        <STATE value="Deleted" />
      </STATES>
      <TRANSITIONS>
        <TRANSITION from="" to="Not Started">
          <REASONS>
            <DEFAULTREASON value="New" />
          </REASONS>
        </TRANSITION>
        <TRANSITION from="Not Started" to="In Progress">
          <REASONS>
            <DEFAULTREASON value="Work has commenced" />
          </REASONS>
        </TRANSITION>
        <TRANSITION from="In Progress" to="Done">
          <REASONS>
            <DEFAULTREASON value="Work has been completed" />
          </REASONS>
        </TRANSITION>
        <TRANSITION from="In Progress" to="Aborted">
          <REASONS>
            <DEFAULTREASON value="Sprint was cancelled" />
          </REASONS>
        </TRANSITION>
        <TRANSITION from="Not Started" to="Deleted">
          <REASONS>
            <DEFAULTREASON value="Item marked as deleted" />
          </REASONS>
        </TRANSITION>
        <TRANSITION from="In Progress" to="Deleted">
          <REASONS>
            <DEFAULTREASON value="Item marked as deleted" />
          </REASONS>
        </TRANSITION>
        <TRANSITION from="Done" to="Deleted">
          <REASONS>
            <DEFAULTREASON value="Item marked as deleted" />
          </REASONS>
        </TRANSITION>
        <TRANSITION from="Aborted" to="Deleted">
          <REASONS>
            <DEFAULTREASON value="Item marked as deleted" />
          </REASONS>
        </TRANSITION>
        <TRANSITION from="Deleted" to="Not Started">
          <REASONS>
            <DEFAULTREASON value="Deleted item restored" />
          </REASONS>
        </TRANSITION>
        <TRANSITION from="Deleted" to="In Progress">
          <REASONS>
            <DEFAULTREASON value="Deleted item restored" />
          </REASONS>
        </TRANSITION>
        <TRANSITION from="Deleted" to="Done">
          <REASONS>
            <DEFAULTREASON value="Deleted item restored" />
          </REASONS>
        </TRANSITION>
        <TRANSITION from="Deleted" to="Aborted">
          <REASONS>
            <DEFAULTREASON value="Deleted item restored" />
          </REASONS>
        </TRANSITION>
      </TRANSITIONS>
    </WORKFLOW>
    <FORM>
      <Layout>
        <Group>
          <Column PercentWidth="100">
            <Control FieldName="System.IterationPath" Type="WorkItemClassificationControl" Label="Sprint Name" LabelPosition="Left" />
          </Column>
        </Group>
        <Group>
          <Column PercentWidth="50">
            <Group Label="Status">
              <Column PercentWidth="100">
                <Control FieldName="Scrum.v3.Capacity" Type="FieldControl" Label="Capacity (hours)" LabelPosition="Left" ReadOnly="True" />
                <Control FieldName="Scrum.v3.PlannedWork" Type="FieldControl" Label="Planned Work (hours)" LabelPosition="Left" ReadOnly="True" />
                <Control FieldName="System.State" Type="FieldControl" Label="Current Status" LabelPosition="Left" />
              </Column>
            </Group>
          </Column>
          <Column PercentWidth="50">
            <Group Label="Duration">
              <Column PercentWidth="33">
                <Control FieldName="Scrum.v3.SprintStart" Type="DateTimeControl" Label="Sprint Start Date" LabelPosition="Left" ReadOnly="True" />
                <Control FieldName="Scrum.v3.SprintEnd" Type="DateTimeControl" Label="Sprint End Date" LabelPosition="Left" ReadOnly="True" />
              </Column>
            </Group>
          </Column>
        </Group>
        <TabGroup>
          <Tab Label="Sprint Goal">
            <Control FieldName="System.Description" Type="HtmlFieldControl" Label="The Goal of the Sprint:" LabelPosition="Top" Dock="Fill" />
          </Tab>
          <Tab Label="History">
            <Control FieldName="System.History" Type="WorkItemLogControl" Label="History:" LabelPosition="Top" Dock="Fill" />
          </Tab>
          <Tab Label="Implements">
            <Control Type="LinksControl" Name="LinkedRelease" Label="Parent Release:" LabelPosition="Top">
              <LinksControlOptions>
                <WorkItemLinkFilters FilterType="include">
                  <Filter LinkType="Scrum.ImplementedBy" FilterOn="reversename" />
                </WorkItemLinkFilters>
                <WorkItemTypeFilters FilterType="include">
                  <Filter WorkItemType="Release" />
                </WorkItemTypeFilters>
                <ExternalLinkFilters FilterType="excludeAll"/>
                <LinkColumns>
                  <LinkColumn RefName="System.Id" />
                  <LinkColumn RefName="System.Links.LinkType" />
                  <LinkColumn RefName="System.WorkItemType" />
                  <LinkColumn RefName="System.IterationPath" />
                  <LinkColumn RefName="System.Description" />
                  <LinkColumn RefName="Scrum.v3.ActualWorkStarts" />
                  <LinkColumn RefName="Scrum.v3.ActualWorkEnds" />
                  <LinkColumn LinkAttribute="System.Links.Comment" />
                </LinkColumns>
              </LinksControlOptions>
            </Control>
          </Tab>
          <Tab Label="Implemented By">
            <Control Type="LinksControl" Name="LinkedTeamSprint" Label="Teams working on this Sprint:" LabelPosition="Top">
              <LinksControlOptions>
                <WorkItemLinkFilters FilterType="include">
                  <Filter LinkType="Scrum.ImplementedBy" FilterOn="forwardname" />
                </WorkItemLinkFilters>
                <WorkItemTypeFilters FilterType="include">
                  <Filter WorkItemType="Team Sprint" />
                </WorkItemTypeFilters>
                <ExternalLinkFilters FilterType="excludeAll" />
                <LinkColumns>
                  <LinkColumn RefName="System.Id" />
                  <LinkColumn RefName="System.Links.LinkType" />
                  <LinkColumn RefName="System.WorkItemType" />
                  <LinkColumn RefName="System.IterationPath" />
                  <LinkColumn RefName="System.Description" />
                  <LinkColumn RefName="Scrum.v3.Capacity" />
                  <LinkColumn RefName="Scrum.v3.SprintStart" />
                  <LinkColumn RefName="Scrum.v3.SprintEnd" />
                  <LinkColumn LinkAttribute="System.Links.Comment" />
                </LinkColumns>
              </LinksControlOptions>
            </Control>
          </Tab>
          <Tab Label="All Links">
            <Control Type="LinksControl" Name="OtherLinks">
              <LinksControlOptions>
                <LinkColumns>
                  <LinkColumn RefName="System.ID" />
                  <LinkColumn RefName="System.Links.LinkType" />
                  <LinkColumn RefName="System.WorkItemType" />
                  <LinkColumn RefName="System.Title" />
                  <LinkColumn RefName="System.AssignedTo" />
                  <LinkColumn RefName="System.State" />
                  <LinkColumn LinkAttribute="System.Links.Comment" />
                </LinkColumns>
              </LinksControlOptions>
            </Control>
          </Tab>
          <Tab Label="Process Guidance">
            <Control Type="WebpageControl" LabelPosition="Top" Dock="Fill">
              <WebpageControlOptions AllowScript="false">
                <Link UrlRoot="http://www.scrumforteamsystem.com/" UrlPath="/processguidance/v3/{0}/{1}" >
                  <Param Index="0" Value="System.WorkItemType" Type="Current" />
                  <Param Index="1" Value="System.State" Type="Current"/>
                </Link>
              </WebpageControlOptions>
            </Control>
          </Tab>
        </TabGroup>
      </Layout>
    </FORM>
  </WORKITEMTYPE>
</WITD>